home *** CD-ROM | disk | FTP | other *** search
- '\" Copyright 1990 Regents of the University of California
- '\" Permission to use, copy, modify, and distribute this
- '\" documentation for any purpose and without fee is hereby
- '\" granted, provided that this notice appears in all copies.
- '\" The University of California makes no representations about
- '\" the suitability of this material for any purpose. It is
- '\" provided "as is" without express or implied warranty.
- '\"
- '\" $Header: /sprite/src/admin/rmold/RCS/rmold.man,v 1.3 91/03/12 14:19:36 kupfer Exp $ SPRITE (Berkeley)
- '/"
- .so \*(]ltmac.sprite
- .HS RMOLD cmds
- .BS
- '\" Note: do not modify the .SH NAME line immediately below!
- .SH NAME
- rmold \- Delete old files
- .SH SYNOPSIS
- \fBrmold\fR [\fIoptions\fR] \fInumDays file file ...\fR
- .SH OPTIONS
- .IP "\fB\-mod\fR" 15
- Use modify time instead of access time to control deletion.
- .IP "\fB\-print\fR" 15
- Do not actually delete any files; just print a list of those that
- would be deleted.
- .IP "\fB\-timesFrom \fIdirectory\fR" 15
- For each
- .IR file ,
- get the access (or modify) time from \fIdirectory\fB/\fIfile\fR
- instead of from
- .IR file .
- .IP "\fB\-help\fR" 15
- Print a summary of the command-line options and exit without updating
- any targets.
- .BE
-
- .SH DESCRIPTION
- .PP
- The \fBrmold\fR program deletes all of the named files that haven't
- been accessed in the last \fInumDays\fR days. It prints the names
- of all the files it deleted. If the \fB-mod\fR switch is given,
- then \fBrmold\fR deletes all the files that haven't been modified
- in \fInumDays\fR days. If \fB-print\fR is specified then \fBrmold\fR
- prints the names of files that haven't been accessed (or modified)
- in \fInumDays\fR, but it doesn't delete any of them.
- .PP
- If
- .B timesFrom
- is specified,
- .B rmold
- will use the access (or modify) time of the same-named file in the
- given alternate directory. This option lets you delete old backup files after
- the installed version of the file has been around for awhile. For
- example, to delete backup copies of commands that were installed over
- 90 days ago, you could do something like
- .DS
- cd /sprite/cmds.$MACHINE.old
- rmold -mod -timesFrom /sprite/cmds.$MACHINE 90 *
- .DE
-
- .SH KEYWORDS
- access, delete, modified, old
-